const express = require('express');
const router = express.Router();
router.get('/billFalse', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'string',
                region: '全球',
                dealerCode: '/',
                dealerName: '/',
                market: '/',
                time: '2020-01-01---2020-03-31',
                num: 2098,
                acceptNum: 1778,
                returnNum: 1,
                claimsRejectNum: 309,
                monthEndNum: 10,
                crossMonthNum: 14,
                onePassNum: 1720,
                onePassRate: 0.8198,
                passRate: 0.8198
            }
        ]
    });
});

router.get('/billTrue', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                mouth: '1月',
                startApplyNum: 100,
                endApplyNum: 115,
                startPassRate: 0.5,
                endPassRate: 0.8
            },
            {
                id: 'string2',
                mouth: '2月',
                startApplyNum: 105,
                endApplyNum: 120,
                startPassRate: 0.2,
                endPassRate: 0.6
            },
            {
                id: 'string3',
                mouth: '3月',
                startApplyNum: 110,
                endApplyNum: 125,
                startPassRate: 0.7,
                endPassRate: 0.9
            },
            {
                id: 'string4',
                mouth: '4月',
                startApplyNum: 115,
                endApplyNum: 130,
                startPassRate: 0.67,
                endPassRate: 0.87
            },
            {
                id: 'string5',
                mouth: '5月',
                startApplyNum: 120,
                endApplyNum: 135,
                startPassRate: 0.77,
                endPassRate: 0.92
            },
            {
                id: 'string6',
                mouth: '6月',
                startApplyNum: 125,
                endApplyNum: 140,
                startPassRate: 0.87,
                endPassRate: 0.97
            },
            {
                id: 'string7',
                mouth: '7月',
                startApplyNum: 130,
                endApplyNum: 145,
                startPassRate: 0.5,
                endPassRate: 0.8
            },
            {
                id: 'string8',
                mouth: '8月',
                startApplyNum: 135,
                endApplyNum: 150,
                startPassRate: 0.2,
                endPassRate: 0.6
            },
            {
                id: 'string9',
                mouth: '9月',
                startApplyNum: 140,
                endApplyNum: 155,
                startPassRate: 0.7,
                endPassRate: 0.9
            },
            {
                id: 'string10',
                mouth: '10月',
                startApplyNum: 145,
                endApplyNum: 160,
                startPassRate: 0.67,
                endPassRate: 0.87
            },
            {
                id: 'string11',
                mouth: '11月',
                startApplyNum: 150,
                endApplyNum: 165,
                startPassRate: 0.77,
                endPassRate: 0.92
            },
            {
                id: 'string12',
                mouth: '12月',
                startApplyNum: 155,
                endApplyNum: 170,
                startPassRate: 0.87,
                endPassRate: 0.97
            }
        ]
    });
});

router.get('/approveFalse', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                approverName: '何飞',
                dealerCode: '15665',
                dealerName: 'string',
                market: '巴西',
                time: '2020-01-01---2020-03-31',
                total: 1122,
                approveNum: 79,
                returnNum: 1,
                claimsRejectNum: 2,
                tobeApproveNum: 1043,
                totalApproveNum: 79,
                onePassNum: 76,
                totalPassNum: 77,
                onePassRate: 0.962,
                passRate: 0.9747,
                completeRate: 0.0704
            },
        ]
    });
});

router.get('/approveTrue', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                mouth: '1月',
                startApplyNum: 100,
                endApplyNum: 115,
                startCompleteRate: 0.5,
                endCompleteRate: 0.8
            },
            {
                id: 'string2',
                mouth: '2月',
                startApplyNum: 105,
                endApplyNum: 120,
                startCompleteRate: 0.2,
                endCompleteRate: 0.6
            },
            {
                id: 'string3',
                mouth: '3月',
                startApplyNum: 110,
                endApplyNum: 125,
                startCompleteRate: 0.7,
                endCompleteRate: 0.9
            },
            {
                id: 'string4',
                mouth: '4月',
                startApplyNum: 115,
                endApplyNum: 130,
                startCompleteRate: 0.67,
                endCompleteRate: 0.87
            },
            {
                id: 'string5',
                mouth: '5月',
                startApplyNum: 120,
                endApplyNum: 135,
                startCompleteRate: 0.77,
                endCompleteRate: 0.92
            },
            {
                id: 'string6',
                mouth: '6月',
                startApplyNum: 125,
                endApplyNum: 140,
                startCompleteRate: 0.87,
                endCompleteRate: 0.97
            },
            {
                id: 'string7',
                mouth: '7月',
                startApplyNum: 130,
                endApplyNum: 145,
                startCompleteRate: 0.5,
                endCompleteRate: 0.8
            },
            {
                id: 'string8',
                mouth: '8月',
                startApplyNum: 135,
                endApplyNum: 150,
                startCompleteRate: 0.2,
                endCompleteRate: 0.6
            },
            {
                id: 'string9',
                mouth: '9月',
                startApplyNum: 140,
                endApplyNum: 155,
                startCompleteRate: 0.7,
                endCompleteRate: 0.9
            },
            {
                id: 'string10',
                mouth: '10月',
                startApplyNum: 145,
                endApplyNum: 160,
                startCompleteRate: 0.67,
                endCompleteRate: 0.87
            },
            {
                id: 'string11',
                mouth: '11月',
                startApplyNum: 150,
                endApplyNum: 165,
                startCompleteRate: 0.77,
                endCompleteRate: 0.92
            },
            {
                id: 'string12',
                mouth: '12月',
                startApplyNum: 155,
                endApplyNum: 170,
                startCompleteRate: 0.87,
                endCompleteRate: 0.97
            }
        ]
    });
});

router.get('/billAmount', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                region: '巴西',
                dealerCode: 15665,
                market: '巴西',
                n1: 120,
                n2: 110,
                n3: 120,
                n4: 120,
                n5: 110,
                n6: 120,
                n7: 120,
                n8: 110,
                n9: 120,
                n10: 120,
                n11: 110,
                n12: 120
            },
            {
                id: 'strin2',
                region: '埃及',
                dealerCode: 15796,
                market: '埃及',
                n1: 150,
                n2: 90,
                n3: 200,
                n4: 150,
                n5: 90,
                n6: 200,
                n7: 150,
                n8: 90,
                n9: 200,
                n10: 150,
                n11: 90,
                n12: 200
            },
        ]
    });
});

router.get('/onePassRate', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                region: '巴西',
                dealerCode: 15665,
                market: '巴西',
                n1: 0.12,
                n2: 0.11,
                n3: 0.12,
                n4: 0.12,
                n5: 0.12,
                n6: 0.12,
                n7: 0.12,
                n8: 0.11,
                n9: 0.12,
                n10: 0.12,
                n11: 0.11,
                n12: 0.12
            },
            {
                id: 'strin2',
                region: '埃及',
                dealerCode: 15796,
                market: '埃及',
                n1: 0.15,
                n2: 0.9,
                n3: 0.2,
                n4: 0.15,
                n5: 0.9,
                n6: 0.2,
                n7: 0.15,
                n8: 0.9,
                n9: 0.2,
                n10: 0.15,
                n11: 0.9,
                n12: 0.2
            },
        ]
    });
});

router.get('/rejectFalse', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                dealerCode: 15665,
                mouth: '202003',
                chargebackReason: 'Beyond the',
                chargebackType: '1',
                num: 11,
                prop: 0.079
            },
        ]
    });
});

router.get('/rejectTrue', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                region: '巴西',
                dealerCode: 15665,
                market: '巴西',
                n1: 0.12,
                n2: 0.11,
                n3: 0.12,
                n4: 0.12,
                n5: 0.12,
                n6: 0.12,
                n7: 0.12,
                n8: 0.11,
                n9: 0.12,
                n10: 0.12,
                n11: 0.11,
                n12: 0.12
            },
            {
                id: 'strin2',
                region: '埃及',
                dealerCode: 15796,
                market: '埃及',
                n1: 0.15,
                n2: 0.9,
                n3: 0.2,
                n4: 0.15,
                n5: 0.9,
                n6: 0.2,
                n7: 0.15,
                n8: 0.9,
                n9: 0.2,
                n10: 0.15,
                n11: 0.9,
                n12: 0.2
            },
        ]
    });
});
module.exports = router;
